﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UserDetail.aspx.cs" Inherits="iEN.PlatformSet.UserDetail" %>

<%@ Register src="../UserControl/TopMenu.ascx" tagname="TopMenu" tagprefix="uc2" %>

<%@ Register assembly="DundasWebGauge" namespace="Dundas.Gauges.WebControl" tagprefix="DGWC" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>帳號編輯</title>
    <script type="text/javascript">
        function EndRequestHandler(sender, args) {
            if (args.get_error() != undefined) {
                var code = args.get_response().get_statusCode(); // 0, 500, 503, 12007, 12029, 12031
                //alert('EndRequestHandler: ' + code);
                //clear error
                args.set_errorHandled(true);
                // alert('網路暫時無法連線，請重試！');   
            }
        }
        function init() {
            Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
            Sys.Application.add_load(
            function () {
                var form = Sys.WebForms.PageRequestManager.getInstance()._form;
                form._initialAction = form.action = window.location.href;
            }
            );
        }
    </script>
    <style type="text/css">
        #IMap
        {
            width: 952px
         }
        .style1
        {
            width: 100px;
        }
        .style2
        {
        	width: 952px;
        }
        .style3
        {
        	width: 852px;
        }
    </style>
</head>
<body onload="init();">
    <form id="form1" runat="server">
    <uc2:TopMenu ID="TopMenu1" runat="server" />
        <center>
    <asp:ScriptManager ID="ScriptManager1" runat="server" /> 
    <asp:Label ID="lblMsg" runat="server" Font-Names="微軟正黑體" Font-Size="X-Large" 
                        ForeColor="Red" Text="你沒有瀏覽此頁面的權限" Visible="False"></asp:Label>
        <asp:Panel ID="Panel1" runat="server">
        <table width="955px">
            <tr>
                <td style="background-image:url('../images/title_back.gif')" align="center" ; 
                    class="style2" >
                    <asp:Label ID="Label1" runat="server" Text="帳號編輯" BackColor="Transparent" style="color:Blue;background-color:Transparent;font-family:標楷體;font-size:XX-Large;"></asp:Label>
                </td>
            </tr>
            <tr>
                <td align=left ; class="style2">
                            <span>
                            </span>
                </td>
            </tr>
        </table>
        <table width = "955px">
            <tr align="left"; ><td class="style1">
                    <asp:Label ID="lEnable" runat="server" Text="啟用：" 
                        BorderColor="Black" BorderStyle="None" Font-Size="Medium" Width="100px"></asp:Label>
                    </td>
                    <td class="style3">
                    <asp:CheckBox ID="cbEnable" runat="server" Font-Size="Medium" Text="帳號啟用" />
                    
            </td></tr>
            <tr align="left"; ><td class="style1">
            	<asp:Label ID="lUsername" runat="server" Text="客戶名稱：" 
                        BorderColor="Black" BorderStyle="None" Font-Size="Medium" Width="100px"></asp:Label>
                    </td>
                    <td class="style3">
                    <asp:TextBox ID="tbUsername" runat="server" Font-Size="Medium"></asp:TextBox>
            </td></tr>
            <tr align="left"; valign="top"><td >
            	<asp:Label ID="lUsertype" runat="server" Text="類型：" 
                        BorderColor="Black" BorderStyle="None" Font-Size="Medium"
                    Width="100px"></asp:Label>
                    </td>
                    <td class="style3">
                    <asp:RadioButtonList ID="rblUsertype" runat="server" Font-Size="Medium" 
                            Width="281px" RepeatDirection="Horizontal">
                        <asp:ListItem Value="0">Guest</asp:ListItem>
                        <asp:ListItem Value="1">Operator</asp:ListItem>
                        <asp:ListItem Value="2">Director</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
                </tr>
            <tr align="left"; ><td class="style1">
            	<asp:Label ID="lUsername0" runat="server" Text="登入帳號：" 
                        BorderColor="Black" BorderStyle="None" Font-Size="Medium" 
                    Width="100px"></asp:Label>
                    </td>
                    <td class="style3">
                    <asp:TextBox ID="tbAccount" runat="server" Font-Size="Medium"></asp:TextBox>
            </td></tr>
            <tr align="left"; ><td class="style1">
            	<asp:Label ID="lPassword" runat="server" Text="登入密碼：" 
                        BorderColor="Black" BorderStyle="None" Font-Size="Medium" 
                    Width="100px"></asp:Label>
                    </td>
                    <td class="style3">
                    <asp:TextBox ID="tbPassword" runat="server" Font-Size="Medium" TextMode="Password"></asp:TextBox>
            </td></tr>
            <tr align="left"; ><td class="style1">
            	<asp:Label ID="lPhone" runat="server" Text="聯絡電話：" 
                        BorderColor="Black" BorderStyle="None" Font-Size="Medium" 
                    Width="100px"></asp:Label>
                    </td>
                    <td class="style3">
                    <asp:TextBox ID="tbPhone" runat="server" Font-Size="Medium"></asp:TextBox>
            </td></tr>
            <tr align="left"; ><td class="style1">
            	<asp:Label ID="lMobilephone" runat="server" Text="行動電話：" 
                        BorderColor="Black" BorderStyle="None" Font-Size="Medium" 
                    Width="100px"></asp:Label>
                    </td>
                    <td class="style3">
                    <asp:TextBox ID="tbMobilephone" runat="server" Font-Size="Medium"></asp:TextBox>
            </td></tr>
            <tr align="left"; ><td class="style1">
            	<asp:Label ID="lEmail" runat="server" Text="電子郵件：" 
                        BorderColor="Black" BorderStyle="None" Font-Size="Medium" 
                    Width="100px"></asp:Label>
                    </td>
                    <td class="style3">
                    <asp:TextBox ID="tbEmail" runat="server" Font-Size="Medium" ></asp:TextBox>
                <br />
                <br />
            </td></tr>
        </table>
        <table width="955px">
            <tr align="left"; ><td class="style2">
                <asp:Button ID="Button1" runat="server" Font-Size="Medium" 
                    onclick="Button1_Click" Text="更新帳號資料" Width="110px" Height="30px" />
            &nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Button ID="bDeleteUser" runat="server" Font-Size="Medium" 
                    onclick="bDeleteUser_Click" OnClientClick="if (confirm('確定要刪除此帳號嗎？') == false) {return false;}" 
                    Text="刪除帳號資料" Width="110px" Height="30px" />
            &nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Button ID="bBackSetUser" runat="server" Font-Size="Medium" 
                    onclick="backSetUser_Click" Text="返回帳號管理" Width="110px" Height="30px" />
            </td></tr>

            <tr align="left"; ><td class="style2">
                &nbsp;<asp:Label ID="lShowmsg" runat="server" Font-Size="Small" ForeColor="Red" 
                    Height="30px" Visible="False"></asp:Label>
            </td></tr>
            
        </table>
        </asp:Panel>
        </center>
</form>
</body>
</html>